<?php
 /**
* @Author:  	Daniel Dinh
* @Email:   	webdevelopmentvn@gmail.com
* @Link: 		http://joomsoft.net
* @Version: 	1.0
* @copyright:	Joomsoft.net
* @license:		GNU GPL v3
*/
// No direct access.
defined('_JEXEC') or die;
$products = $_SESSION['shop_products'];

?>
<div class="products-list">
	<?php 
		foreach($products as $pro):
			$url = JRoute::_("index.php?option=com_shopping&view=detail&id=".$pro['id'].":".JFilterOutput::stringURLSafe($pro["name"]));
	?>
		<div class="product-item">
			<div class="product-title">
				<h3><a href="<?php echo $url;?>" title="<?php echo $pro["name"];?>"><?php echo $pro["name"];?></a></h3>
			</div>
			
			<div class="product-info">
				<div class="product-thumbnail">
					<a href="<?php echo $url;?>" title="<?php echo $pro["name"];?>"><img src="<?php echo $pro["image"][0];?>" width="250" /></a>
				</div>
				
				<div class="product-props">
				<table class="tableprop">
					<tbody>
						<tr class="bg_chan">
							<td width="30%"><label><?php echo JText::_("COM_SHOPPING_PRODUCT_ADDESS");?></label></td>
							<td><?php echo $pro["address"];?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_le">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_SUBURB");?></label></td>
							<td><?php echo $pro["suburb"];?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_chan">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_MOBILE");?></label></td>
							<td><?php echo shoppingHelper::formatTel($pro["agentphone"]);?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_le">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_BATH");?></label></td>
							<td><?php echo $pro["bath"];?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_chan">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_BED");?></label></td>
							<td><?php echo $pro["bed"];?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_le">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_CAR");?></label></td>
							<td><?php echo $pro["car"];?></td>
						</tr>
					</tbody>
					<tbody>
						<tr class="bg_chan">
							<td><label><?php echo JText::_("COM_SHOPPING_PRODUCT_PRICE");?></label></td>
							<td><?php echo $pro["price"];?></td>
						</tr>
					</tbody>
				</table>
				
				</div>
			</div>
			
			<br clear="all" />
		</div>
	<?php endforeach;?>
</div>
